package com.syh.jn.scm.service.api.supplier.finance.archive;

import cn.redscarf.commons.wrapper.Wrapper;
import com.syh.jn.scm.dto.supplier.finance.archive.ArchiveSettlementsVo;
import com.syh.jn.scm.dto.supplier.finance.archive.ArchiveSto;
import com.syh.jn.scm.dto.supplier.finance.archive.ArchiveStockVo;
import com.syh.jn.scm.dto.supplier.finance.archive.ArchiveVo;
import com.syh.jn.scm.service.core.CreateService;
import com.syh.jn.scm.service.core.DeleteService;
import com.syh.jn.scm.service.core.ReadService;

import java.util.List;

/**
 * Created by soci.song on 2019/3/1.
 */
public interface ArchiveService extends ReadService<ArchiveVo,Long> {

    /**
     * 结存
     * @param sto
     */
    void archive(ArchiveSto sto);

    /**
     *反结存
     * @param businessEntityId
     */
    void archiveCancel(Wrapper businessEntityId);

    List<ArchiveSettlementsVo> findSettlementsItemsPage(Wrapper we,Integer startRow,Integer Count);

    List<ArchiveStockVo> findStockItemsPage(Wrapper we, Integer startRow, Integer Count);

    Integer countSettlements(Wrapper we);

    Integer countStock(Wrapper we);
}
